close

abstract fun close()

Closes this object and releases all resources associated with it. If the object is already closed then invoking this method has no effect.

Implementers of this interface are strongly advised to not have the close method throw any exception. It is supposed that the close operation cannot fail. Only in case of an unexpected error the implementers can throw a runtime exception.